# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-psycopg2
pkgver=2.8.5
pkgrel=0
pkgdesc="PostgreSQL adapter for python"
url="http://initd.org/psycopg"
arch="all"
license="LGPL-2.0-or-later"
makedepends="postgresql-dev python3-dev py3-setuptools"
checkdepends="py3-tox"
source="https://files.pythonhosted.org/packages/source/p/psycopg2/psycopg2-$pkgver.tar.gz"
builddir="$srcdir/psycopg2-$pkgver"

build() {
	python3 setup.py build
}

check() {
	tox --sitepackages
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="d4cf9b94573b90fe56555ea5cf841aa0c4c806770f92f35a7ef2531999bb50f98eb1276e56f1540b5f2695e443bac7e9cb8bbfbd24ed82164f99663259d2da3e  psycopg2-2.8.5.tar.gz"
